package com.lecf.string;

import java.util.Scanner;

/**
 * @author 懒洋洋不懒
 * @version 1.0
 * @date 2025/4/14 16:02
 * @description
 */
public class StringTest1 {
    public static void main(String[] args) {
//键盘录入字符串
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
         String str =input.next();
//        反转录入的字符串
        StringBuilder s = new StringBuilder(str);
        str = s.reverse().toString();
        System.out.println("反转后：" + str);
        input.close();





    }
}


